/**
 * @api {get} /heroes 1.1 查询全部英雄
 * @apiName getHeroes
 * @apiGroup heroes
 *
 * @apiSuccessExample {json} Success-Response:
 {
        "err_code": 0,
        "message": [
            {
                "id": 1,
                "name": "李白",
                "age": 18,
                "ctime": "2021-01-23 16:59:25",
                "status": 1
            },
            {
                "id": 3,
                "name": "王昭君",
                "age": 18,
                "ctime": "2020-01-22 17:01:22",
                "status": 1
            },
            {
                "id": 4,
                "name": "鲁班",
                "age": 7,
                "ctime": "2020-01-22 20:16:01",
                "status": 1
            },
            {
                "id": 5,
                "name": "张飞",
                "age": 40,
                "ctime": "2020-01-22 17:01:22",
                "status": 1
            }
        ]
     }
 */

/**
 * @api {get} /heroes/:id 1.2 根据id查询英雄
 * @apiName getHeroesById
 * @apiGroup heroes
 *
 * @apiParam {Number} id 英雄id 必填.
 * @apiSuccessExample {json} Success-Response:
 {
      "err_code": 0,
      "message": [
          {
              "id": 4,
              "name": "鲁班",
              "age": 7,
              "ctime": "2020-01-22 20:16:01",
              "status": 1
          }
        ]
      }
 */

/**
 * @api {put} /heroes/:id 1.3 根据id编辑英雄
 * @apiName updateHeroes
 * @apiGroup heroes
 *
 * @apiParam {Number} id 英雄id 必填.
 * @apiParam {String} name 英雄名字 必填.
 * @apiParam {Number} age 英雄年龄 必填.
 * @apiSuccessExample {json} Success-Response:
 {
      "err_code": 0,
      "message": "英雄编辑成功"
     }
 */

/**
 * @api {delete} /heroes/:id 1.4 根据id删除英雄
 * @apiName deleteHeroes
 * @apiGroup heroes
 *
 * @apiParam {Number} id 英雄id 必填.
 * @apiSuccessExample {json} Success-Response:
 {
      "err_code": 0,
      "message": "英雄删除成功"
     }
 */

/**
 * @api {post} /heroes 1.5 添加英雄
 * @apiName addHeroes
 * @apiGroup heroes
 *
 * @apiParam {String} name 英雄名字 必填.
 * @apiParam {Number} age 英雄年龄 必填.
 * @apiSuccessExample {json} Success-Response:
 {
      "err_code": 0,
      "message": "添加英雄成功"
 }
 */